﻿using AppGPS.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppGPS.ViewModels
{
    class SecurityRequest
    {
        string _host = App.dataShare.szHost;
        APIRequest<string> _apiUser = new APIRequest<string>();
        public SecurityRequest(string Host)
        {
            _host = Host;
        }
        public async Task<string> Encode(string Username, string Password)
        {
            var Result = await _apiUser.GetRequestAsync(_host, "api/security/GetEncode?Username=" + Username + "&Password=" + Password);

            return Result;
        }
    }
}
